home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / dlink / save / DMakefile.2 next >
Encoding:
Text File  |  1993-01-17  |  957 b   |  41 lines

  1.  
  2. #   DMakefile for dlink using dcc.
  3. #
  4. #  (c)Copyright 1992 Obvious Implementations Corp, All Rights Reserved
  5. #  CONFIDENTIAL, This is unpublished proprietary source code owned by Obvious Implementations Corp.
  6. #  This material contains trade secrets of Obvious Implementations Corp.
  7.  
  8. OD= dtmp:comp2/dlink/
  9. EXE= dcc:bin/amiga/bin2/xc_dlink
  10. CFLAGS= -ms -r -I$(OD) -s -DDEBUG
  11. PROTOS= $(OD)protos.h
  12.  
  13. CSRCS= main.c module.c reloc.c sym.c subs.c final.c jump.c
  14. ASRCS= hash.a
  15.  
  16. COBS = $(CSRCS:"*.c":"*.o")
  17. AOBS = $(ASRCS:"*.a":"*.o")
  18.  
  19. COBJS = $(CSRCS:"*.c":"$(OD)*.o")
  20. AOBJS = $(ASRCS:"*.a":"$(OD)*.o")
  21.  
  22. all: $(PROTOS) $(EXE)
  23.  
  24. $(EXE) : $(AOBJS) $(COBJS)
  25.     cd $(OD)
  26.     lc_dcc $(AOBS) $(COBS) -o %(left) $(CFLAGS)
  27.     cd
  28.  
  29. $(COBJS) : $(CSRCS)
  30.     lc_dcc -c %(right) -o %(left) $(CFLAGS)
  31.  
  32. $(AOBJS) : $(ASRCS)
  33.     lc_dcc -c %(right) -o %(left)
  34.  
  35. $(PROTOS) : $(CSRCS) $(ASRCS)
  36.     -delete %(left)
  37.     xc_makeproto -o%(left) %(right)
  38.  
  39. clean:
  40.     delete $(COBJS) $(AOBJS)
  41.